$OpenBSD: patch-agent_platform_platform_unix_go,v 1.3 2017/06/02 06:39:56 ajacoutot Exp $
Index: agent/platform/platform_unix.go
--- agent/platform/platform_unix.go.orig
+++ agent/platform/platform_unix.go
@@ -140,6 +140,18 @@ func getPlatformDetails(log log.T) (name string, versi
 		data := strings.Split(string(contentsBytes), " ")
 		name = strings.TrimSpace(data[0])
 		version = strings.TrimSpace(data[1])
+	} else if runtime.GOOS == "openbsd" {
+		log.Debugf(fetchingDetailsMessage, unameCommand)
+
+		if contentsBytes, err = exec.Command(unameCommand, "-sr").Output(); err != nil {
+			log.Debugf(fetchingDetailsMessage, unameCommand, err)
+			return
+		}
+		log.Debugf(commandOutputMessage, contentsBytes)
+
+		data := strings.Split(string(contentsBytes), " ")
+		name = strings.TrimSpace(data[0])
+		version = strings.TrimSpace(data[1])
 	} else {
 		log.Debugf(fetchingDetailsMessage, lsbReleaseCommand)
 
